class Phone:
    def __init__(self):
        self.power=100
    def dayouxi(self):
        if self.power>10:
            self.power-=10
            print(f"电量消耗10，剩余电量{self.power}")
        else:
            print("电量不足，请充电")
    def tingge(self):
        if self.power>5:
            self.power-=5
            print(f"电量消耗5，剩余电量{self.power}")
        else:
            print("电量不足，请充电")
    def dadianhua(self):
        self.power-=4
        print(f"电量消耗4，剩余电量{self.power}")
    def jiedianhua(self):
        self.power-=3
        print(f"电量消耗3，剩余电量{self.power}")
    def chongdian(self,dian):
        self.power += dian
        if self.power>100:
            self.power=100
            print("充满了")
        else:
           print(f"冲了{dian}电量，剩余电量{self.power}")


p1=Phone()
p1.dayouxi()
p1.tingge()
p1.jiedianhua()
p1.chongdian(10)
print("电量：",p1.power)
